package com.bigbigrain.manage_cms;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;

/**
 * @description: cms管理入口类
 * @author: B1gB1gRA1n
 * @create: 2019-10-21 11:52
 **/
@EnableDiscoveryClient //一个EurekaClient从EurekaServer发现服务
@SpringBootApplication
@EntityScan("com.bigbigrain.framework.domain.cms")//扫描实体类
@ComponentScan(basePackages={"com.bigbigrain.api"})//扫描接口
@ComponentScan(basePackages={"com.bigbigrain.framework"})//扫描common包下的类
@ComponentScan(basePackages={"com.bigbigrain.manage_cms"})//扫描本项目下的所有类
public class ManageCmsApplication {
    public static void main(String[] args) {
        SpringApplication.run(ManageCmsApplication.class,args);
    }
}
